console.log('1111111111111111111111111111');
// import('./test.html').then(parseHTML)

// require(['./list.html'], parseHTML);

import('./list.html').then(parseHTML)
// const pHTML = import('./p.html').then


function parseHTML(html) {
	console.log('html', html)
	document.getElementById('app').innerHTML = html

	console.log(document.getElementById('list'))

	document.getElementById('list').onclick = function(e) {
		console.log('xxxxxxxxxxxxxxxxxxx')
		import('./p.html').then(addPHTML)
	}
}

function addPHTML(html) {
	console.log('222222222222222', html)
	document.getElementById('list').innerHTML = html
}